package com.uniview.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.uniview.dao.ServiceOrderWarnDao;
import com.uniview.entity.po.ServiceOrderWarn;
import com.uniview.service.ServiceOrderWarnService;

@Service("serviceOrderWarnService")
public class ServiceOrderWarnServiceImpl implements ServiceOrderWarnService {
	
	@Autowired
	private ServiceOrderWarnDao orderWarnDao;
	
	@Override
	public Integer save(ServiceOrderWarn warn) throws Exception {
		return (Integer)orderWarnDao.save(warn);
	}

	@Override
	public List<ServiceOrderWarn> findWarnsByOrderId(Integer orderId) throws Exception {
		return orderWarnDao.findWarnsByOrderId(orderId);
	}

	@Override
	public List<ServiceOrderWarn> findWarnsByHandlerNo(String handlerNo) throws Exception {
		return orderWarnDao.findWarnsByHandlerNo(handlerNo);
	}

}
